import { BrowserRouter, Routes, Route } from 'react-router-dom';
import Login from '../pages/Login';
import NotFound from '../pages/site/NotFound';
import HealthCheck from '../pages/site/HealthCheck';
import Main from '../pages/Main';
import Home from '../pages/features/Home';
import Users from '../pages/features/Users';
import Items from '../pages/features/Items';
import Settings from '../pages/features/Settings';
import BlankPage from '../pages/site/BlankPage';

function AppRoutes() {
  return (
    <BrowserRouter>
      <Routes>
        <Route path="/login" element={<Login />} />
        <Route path="/" element={<Main />}>
          <Route index element={<Home />} />
          <Route path="users" element={<Users />} />
          <Route path="items" element={<Items />} />
          <Route path="settings" element={<Settings />} />
        </Route>
        <Route path="/blank" element={<BlankPage />} />
        <Route path="/health-check" element={<HealthCheck />} />
        <Route path="*" element={<NotFound />} />
      </Routes>
    </BrowserRouter>
  );
}

export default AppRoutes;